package com.cskaoyan.chapter0501.chapter050109;

import com.cskaoyan.chapter0501.common.Employee;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:WalterChan
 * @Decription:CEO
 * @Date Created in 2024-05-21-21:10
 */
public class CEO extends Employee {

    public CEO(String name, BigDecimal salary, Date hireDay) {
        super(name, salary, hireDay);
    }
    public Date getHireday(){
        //只能方法自己父类被protected修饰的那个hireDay
        //CEO类中其他对象的hireDay事无法访问到
        super.hireDay=new Date();
        return hireDay;
    }
}
